package com.winit.schedule.job.tracker.util;

import com.winit.schedule.job.tracker.web.auth.User;

/**
 * Created by jianke.zhang on 2017/5/3.
 */
public class RequestUtils {
    private static final ThreadLocal<User> requestContext = new ThreadLocal<User>();

    public static void setLoginUser(User user) {
        requestContext.set(user);
    }

    public static User getLoginUser() {
        return requestContext.get();
    }
}
